<?php
	class Ajax_Default_Model extends TinyMVC_Model{
		function get_config_file_variables(){
			$this->db->query('SELECT * FROM nagios_configfilevariables');
		    while($row = $this->db->next())
		    	$results[] = $row;
		    return $results;
		}
		
		function get_service_checks(){
			$this->db->query('SELECT * FROM nagios_servicechecks');
		    while($row = $this->db->next())
		    	$results[] = $row;
		    return $results;
		}
	}
?>